import React, {Component} from 'react';
import './ReactCom1.css';

class ReactCom1 extends Component {
    constructor(props) {
        super(props);

    }

    render() {
        return (
            <div className="ReactCom1">
                <h2>{this.props.message} MyFirst React 类组件</h2>
                <ul>
                    {
                        this.props.kuangjiaArr.map((data,index)=>
                                <li key={data.id}>
                                    {index}------------{data.id}---------{data.kuangjiaName}
                                </li>
                        )
                    }
                </ul>
            </div>
        );
    }
}

export default ReactCom1;